package com.hs.srm.admin.modules.pricemanagement.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hs.srm.admin.modules.inforecord.entity.InforecordLogEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/*
 *
 */
@Setter
@Getter
@TableName("essential_information")
@ToString
public class EssentialInformationEntity  implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 信息记录状态：0，未确认；1，已确认
     */
    public static final int QR = 1;
    public static final int WQR = 0;

    public EssentialInformationEntity() {
        super();
    }

    /*
     * 主键ID
     */
    @TableId(value = "pk_id", type = IdType.UUID)
    @TableField("pk_id")
    @Excel(name = "主键ID", orderNum = "1")
    private java.lang.String pkId;


    /*
     * 物料号
     */
    @TableField("material_code")
    @Excel(name = "物料号", orderNum = "2")
    private java.lang.String materialCode;

    /*
     * 物料组
     */
    @TableField("material_group")
    @Excel(name = "物料组", orderNum = "3")
    private java.lang.String materialGroup;

    /*
     * SRM供应商编码
     */
    @TableField("srm_code")
    @Excel(name = "SRM供应商编码", orderNum = "4")
    private java.lang.String srmCode;

    /*
     * 工厂
     */
    @TableField("werks")
    @Excel(name = "工厂", orderNum = "5")
    private java.lang.String werks;

    /*
     * 采购组
     */
    @TableField("purchase_group")
    @Excel(name = "采购组", orderNum = "6")
    private java.lang.String purchaseGroup;

    /*
     * 采购组织
     */
    @TableField("purch_arg")
    @Excel(name = "采购组织", orderNum = "7")
    private java.lang.String purchArg;

    /*
     * 税代码
     */
    @TableField("tax_code")
    @Excel(name = "税代码", orderNum = "8")
    private java.lang.String taxCode;

    /*
     * 采购信息记录中的净价
     */
    @TableField("price")
    @Excel(name = "采购信息记录中的净价", orderNum = "9")
    private java.math.BigDecimal price;

    /*
     * 币种
     */
    @TableField("currency")
    @Excel(name = "币种", orderNum = "10")
    private java.lang.String currency;

    /*
     * 价格单位
     */
    @TableField("price_unit")
    @Excel(name = "价格单位", orderNum = "11")
    private java.lang.String priceUnit;

    /*
     * 国际贸易条款
     */
    @TableField("i18n_trade_terms")
    @Excel(name = "国际贸易条款", orderNum = "12")
    private java.lang.String i18nTradeTerms;

    /*
     * 条件记录有效起始日
     */
    @TableField("start_data")
    @Excel(name = "条件记录有效起始日", orderNum = "13")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date startData;

    /*
     * 价格有效日结束时间
     */
    @TableField("price_end_data")
    @Excel(name = "价格有效日结束时间", orderNum = "14")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date priceEndData;

    /*
     *
     */
    @TableField("createtime")
    @Excel(name = "", orderNum = "15")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private java.util.Date createtime;

    /*
     * Sap返回的编号
     */
    @TableField("info_code")
    @Excel(name = "Sap返回的编号", orderNum = "16")
    private java.lang.String infoCode;

    /*
     * 删除条件
     */
    @TableField("isdel")
    @Excel(name = "删除条件", orderNum = "17")
    private java.lang.Integer isdel;

    /*
     * 是否同步
     */
    @TableField("isync")
    @Excel(name = "是否同步", orderNum = "18")
    private java.lang.Integer isync;

    /*
     * 标准数量
     */
    @TableField("standard_num")
    @Excel(name = "标准数量", orderNum = "19")
    private java.math.BigDecimal standardNum;

    /*
     * 周期
     */
    @TableField("cycle")
    @Excel(name = "周期", orderNum = "20")
    private java.math.BigDecimal cycle;
    /**
     * 订单单位
     */
    @TableField("purchase_unit")
    @Excel(name = "采购订单单位", orderNum = "21")
    private String purchaseUnit;

    /**
     * 信息记录状态：0，未确认；1，已确认
     */
    @TableField("info_status")
    private Integer infoStatus;

    /**
     * 采购信息记录分类
     */
    @TableField("classify")
    private String classify;

    /**
     * 供应商名称
     */
    @TableField(exist = false)
    private String vendorName;


    /*
     * 供应商分类
     */
    @TableField(exist = false)
    private String vendorCategory;


    /*
     * 付款条件
     */
    @TableField(exist = false)
    private String payCondition;


    /*
     * 付款条件
     */
    @TableField(exist = false)
    private String payTermsPurchase;

}
